package junyi.power.effects;

import junyi.SSAKObject;
import junyi.player.Player;

import java.util.List;

/**
 * User: Junyi BEI
 * Date: 12-9-30
 * Time: 下午2:34
 */
public final class DropObject extends Effect {
  private Player player;
  private List<? extends SSAKObject> objectPassing;
  public DropObject(Player p, List<? extends SSAKObject> op, EffectSource es) {
    super(es);
    player = p;
    objectPassing = op;
  }

  @Override
  public int start() {
    return player.removeObject(objectPassing);
  }
}
